package operator;

public class OperatorDome3{
    public static void main(String[] args) {
        //目标  +  符号做链接符的识别

        int a = 5 ;
        System.out.println("abc" +'a' );  //abca
        System.out.println("abc" + a);  //abc5
        System.out.println(5 + a);//10
        System.out.println("abc" + 5 + 'a' );//abc5a
        System.out.println(15 + "abc" + 15);//15abc10
        System.out.println(a + 'a');//102
        System.out.println(a + "" +'a');//5a
        System.out.println(a + 'a'+" mff "); //102 mff
        System.out.println("mff"+ a + 'a' ); //mff5
        System.out.println("mff"+ ( a + 'a'));//mff102


        /**
         * 与字符串做+运算时会被当成连接符，其结果还是字符串。
         * 能算则算，不能算就在一起。
         * t
         */

    }
}
